package com.example.demo.controller;

import com.example.demo.Dao.DaoFactory;
import com.example.demo.Dao.GoodsDaoImpl;
import com.example.demo.service.GoodsDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

@Controller
@CrossOrigin
public class MainController {
    @Autowired
    @RequestMapping("/main")
    public String getDbType(){
        return "main";
    }
}

